#include "LUNA_WAVFactory.h"
#include "LUNA_SoundManager.h"
#include "LUNA_WAVSound.h"

using namespace LUNA;

WAVFactory::WAVFactory( SoundManager &soundManager ) :
ISoundFactory( soundManager, "WAV" )
{
}

WAVFactory::~WAVFactory()
{
}

ISound *WAVFactory::createSound( const std::string &filename )
{
	WAVSound *sound = new WAVSound( filename );
	return sound;
}

void WAVFactory::destroySound( ISound *sound )
{
	assert( sound && __FUNCTION__ );
	delete sound;
}